package com.fch.server.service;

import com.fch.server.domain.Test;
import com.fch.server.domain.TestExample;
import com.fch.server.mapper.TestMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author: fangchuhao
 * @description:
 * @create: 2023-02-13 17:28
 **/
@Service
public class TestService {
    @Resource
    private TestMapper testMapper;

    public List<Test> list() {
        TestExample testExample = new TestExample();
        //testExample.createCriteria().andIdEqualTo(1L);
        testExample.setOrderByClause("id desc");
        return testMapper.selectByExample(testExample);
    }
}
